import React, { Component } from 'react'
import {withRouter} from 'react-router-dom';
class Index extends Component {

  componentWillMount(){
    this.props.history.push('/main')
  }

  render() {
    return (
      <div>
        {this.props.children}
      </div>
    )
  }
}
export default withRouter(Index)
